package com.maserb.monitor.enums;

public enum AlarmTypeEnum {
    NO(1, "无报警"), OVER(2, "超限报警"), LOWER(3, "低限报警"), WIN_INSIDE(4, "窗内报警"), WIN_OUTSIDE(5, "窗外报警");

    private int value;
    private String name;

    AlarmTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public boolean equals(AlarmTypeEnum item) {
        return this.getValue() == item.getValue() && this.getName().equals(item.getValue());
    }
}
